	
	package com.cx.bank.model;
	
	//单例---懒汉模式/
	//定义模型层
	public class MoneyBean
	{
		private double money;
		private static MoneyBean instance;//私有化静态类对象
		//构造方法私有
		private MoneyBean(){
		}
		public static MoneyBean getInstance(){
			if(instance==null)
				instance=new MoneyBean();
			return instance;	
		}
		public double getCount(){			
			return this.money;
		}
		public void setCount(double count){			
			this.money=count;
		}
	}